package com.bf.electroplating.pojo.vo.home;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 企业检测因子树VO
 * 
 * @author system
 * @since 2025-01-11
 */
@Data
@Schema(description = "企业检测因子树VO")
public class CompanyFactorTreeVO {

    @Schema(description = "节点ID")
    private String id;

    @Schema(description = "节点名称")
    private String name;

    @Schema(description = "节点类型：company-企业，factor-检测因子")
    private String type;

    @Schema(description = "父节点ID")
    private String parentId;

    @Schema(description = "企业ID")
    private String companyId;

    @Schema(description = "企业名称")
    private String companyName;

    @Schema(description = "废水类型")
    private String wasteWaterType;

    @Schema(description = "检测因子名称")
    private String factorName;

    @Schema(description = "检测因子代码")
    private String factorCode;

    @Schema(description = "是否监控")
    private String isMonitor;

    @Schema(description = "阈值")
    private BigDecimal threshold;

    @Schema(description = "子节点列表")
    private List<CompanyFactorTreeVO> children;

    @Schema(description = "是否展开")
    private Boolean expanded = false;

    @Schema(description = "是否叶子节点")
    private Boolean leaf = false;
}
